﻿using __Able.Network;
using __Able.Network.Packets;
using __Able.Network.Utils;

namespace __Able.Network.RequestPacket
{
    public class KeepAliveRequestPacket : _BasicOutPacket
    {
        public const ushort COMMAND = 0x0001;
        private User user;

        public KeepAliveRequestPacket(User user)
            : base(COMMAND, true, user)
        {
            this.user = user;
        }
        public KeepAliveRequestPacket(ByteBuffer buf, int length, User user) : base(buf, length, user) { }

        public override string PacketName
        {
            get
            {
                return "KeepAliveRequestPacket";
            }
        }

        protected override void PutBody(ByteBuffer buf)
        {
            string s = Util.GetString(buf);
        }
    }
}
